from pyecharts.charts import Bar
from pyecharts import options
address=["湖北","湖南","广西","广东","河南"]
dies=[900,280,20,258,2500]
ques=[28900,15080,520,35098,24098]
bar=Bar()
bar.add_xaxis(address)
bar.add_yaxis("确诊人数",ques)
bar.add_yaxis("死亡人数",dies)
bar.set_global_opts(title_opts=options.TitleOpts(title='全国疫情数据',subtitle='确诊人数和死亡人数'))
bar.render("柱状图.html")
